package com.zmsoft.persistent.sfg.Sfg662020GameFarm;

import org.cnsoft.framework.db.manager.MyDBTableSQLSupport;
import org.springframework.stereotype.Component;

/**
 * 农场升级配置信息建表语句
 */
@Component("Sfg662020GameFarmSQL")
//@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
public class Sfg662020GameFarmSQL extends MyDBTableSQLSupport {
	// 表名
	public String getTableName() {
		return "sfg662020_game_farm";
	}

	// 获得SQL内容
	public String getSQL() throws Exception {
		StringBuilder sqlStringBuilder = new StringBuilder();// 临时变量

		sqlStringBuilder.append("CREATE TABLE sfg662020_game_farm");
		sqlStringBuilder.append("(");
		sqlStringBuilder.append("    id VARCHAR(64) NOT NULL COMMENT '流水ID',");
		sqlStringBuilder.append("    game_type VARCHAR(4) COMMENT '游戏分类(1农场2牧场3鱼塘4工坊)',");
		sqlStringBuilder.append("    game_name VARCHAR(20) COMMENT '游戏名称',");
		sqlStringBuilder.append("    next_farm_level BIGINT(10) COMMENT '目标等级',");
		sqlStringBuilder.append("    need_farm_exp BIGINT(10) COMMENT '所需经验',");
		sqlStringBuilder.append("    need_money BIGINT(10) COMMENT '所需金钱',");
		sqlStringBuilder.append("    need_prop_id1 VARCHAR(64) COMMENT '所需道具1',");
		sqlStringBuilder.append("    need_prop_name1 VARCHAR(128) COMMENT '所需道具名称1',");
		sqlStringBuilder.append("    need_prop_num1 BIGINT(10) COMMENT '所需道具数量1',");
		sqlStringBuilder.append("    need_prop_id2 VARCHAR(64) COMMENT '所需道具2',");
		sqlStringBuilder.append("    need_prop_name2 VARCHAR(128) COMMENT '所需道具名称2',");
		sqlStringBuilder.append("    need_prop_num2 BIGINT(10) COMMENT '所需道具数量2',");
		sqlStringBuilder.append("    need_prop_id3 VARCHAR(64) COMMENT '所需道具3',");
		sqlStringBuilder.append("    need_prop_name3 VARCHAR(128) COMMENT '所需道具名称3',");
		sqlStringBuilder.append("    need_prop_num3 BIGINT(10) COMMENT '所需道具数量3',");
		sqlStringBuilder.append("    memo VARCHAR(200) COMMENT '备注',");
		sqlStringBuilder.append("    fb1 VARCHAR(40) COMMENT '备用1',");
		sqlStringBuilder.append("    fb2 VARCHAR(20) COMMENT '备用2',");
		sqlStringBuilder.append("    fb3 VARCHAR(50) COMMENT '备用3',");
		sqlStringBuilder.append("    fb4 VARCHAR(200) COMMENT '备用4',");
		sqlStringBuilder.append("    fb5 VARCHAR(80) COMMENT '备用5',");
		sqlStringBuilder.append("    eb1 VARCHAR(40) COMMENT '扩展1',");
		sqlStringBuilder.append("    eb2 VARCHAR(80) COMMENT '扩展2',");
		sqlStringBuilder.append("    eb3 VARCHAR(20) COMMENT '扩展3',");
		sqlStringBuilder.append("    eb4 VARCHAR(10) COMMENT '扩展4',");
		sqlStringBuilder.append("    eb5 VARCHAR(20) COMMENT '扩展5',");
		sqlStringBuilder.append("    sid VARCHAR(20) COMMENT '数据归属系统',");
		sqlStringBuilder.append("    del_flag CHAR(1) DEFAULT '0' COMMENT '有效标识',");
		sqlStringBuilder.append("    create_time VARCHAR(24) DEFAULT '2018-02-02' NOT NULL COMMENT '创建时间',");
		sqlStringBuilder.append("    creator VARCHAR(64) DEFAULT 'SYSTEM' NOT NULL COMMENT '创建者',");
		sqlStringBuilder.append("    update_time VARCHAR(24) COMMENT '更新时间',");
		sqlStringBuilder.append("    updator VARCHAR(64) COMMENT '最后更新者',");
		sqlStringBuilder.append("  PRIMARY KEY (id)");
		sqlStringBuilder.append(") COMMENT '农场升级配置信息';");

		return sqlStringBuilder.toString();
	}

}
